package org.hhgzs.modules.erp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 单据编号表
 * </p>
 *
 * @author peiqy
 * @since 2021-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("hx_sequence")
public class Sequence extends Model<Sequence> {

    private static final long serialVersionUID = 1L;

    /**
     * 序列名称
     */
    private String seqName;

    /**
     * 最小值
     */
    private Long minValue;

    /**
     * 最大值
     */
    private Long maxValue;

    /**
     * 当前值
     */
    private Long currentVal;

    /**
     * 增长步数
     */
    private Integer incrementVal;

    /**
     * 备注
     */
    private String remark;


    @Override
    protected Serializable pkVal() {
        return this.seqName;
    }

}
